html,
body {
  height: 100%;
  width: 100%;
  overflow: visible;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

body {
  background: #f0f2f5;
}

.text1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /*省略几行写几*/
  -webkit-box-orient: vertical;
}

.text2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /*省略几行写几*/
  -webkit-box-orient: vertical;
}

.text3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /*省略几行写几*/
  -webkit-box-orient: vertical;
}

.text4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /*省略几行写几*/
  -webkit-box-orient: vertical;
}


/* 常用 flex */
.flex-start {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.flex-end {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-align-center {
  display: flex;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex1 {
  display: flex;
  flex: 1;
}

/* 移动端的时候由于屏幕变小隐藏头部导航栏 */
@media screen and (max-width: 540px) {
  .app-breadcrumb {
    display: none !important;
  }
}

/** tabel中tabs标签 **/
.tabs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  // align-items: center;

  .tab {
    margin-right: 20px;
    cursor: pointer;

    .name {
      font-size: 16px;
      padding: 10px;
      border-bottom: 2px solid #fff;
    }
  }

  .tabCheck {
    color: var(--el-color-primary);

    .name {
      border-bottom: 2px solid var(--el-color-primary);
    }
  }
}

/** 设置滚动条 **/
::-webkit-scrollbar {
  width: 7px;
  height: 8px;
}


::-webkit-scrollbar-track {
  background-color: rgb(0 0 0 / 5%);
}

::-webkit-scrollbar-thumb {
  // background: rgba(0, 0, 0, 0.6);
  background-color: rgb(144 147 153 / 30%);
  // background-color: rgba(144, 147, 153, 0.3);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgb(0 0 0 / 20%);
}


/* nprogress样式 */
#nprogress .bar {
  background: $primaryColor !important;
}

#nprogress .spinner-icon {
  border-top-color: $primaryColor !important;
  border-left-color: $primaryColor !important;
}

#nprogress .peg {
  box-shadow: 0 0 10px $primaryColor, 0 0 5px $primaryColor !important;
}

.app-container {
  height: 100%;
  width: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.app-container-inner {
  height: 100%;
  width: 100%;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  background: white;
  padding: 20px;
  box-sizing: border-box;
}

.layout-horizontal {
  .header-icon {
    color: #bfcbd9 !important;
  }

  .el-dropdown-link {
    color: #bfcbd9 !important;
  }
}

.el-pager li:focus {
  border: none;
}

.el-dropdown:focus {
  border: none;
  outline: none !important;
}

.svg-icon:focus {
  border: none !important;
  outline: none !important;
}

// 需要去  element-dark.scss文件下加暗黑模式的属性
.appMain {
  display: flex;
  padding: 16px;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 12px rgb(0 0 0 / 5%);
}